package com.shuwen.gcdj.common.annotation;

import com.shuwen.gcdj.common.enums.AuthType;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface JWTAuth {

    // value
    String value() default "";

    // 认证方式
    AuthType type() default AuthType.JWT;

    // api code
    String apiCode() default "";
}
